Skip to content

Conversation

@kjy5
Copy link
Member

@kjy5 kjy5 commented Nov 16, 2025

Brief summary of changes

Notes

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the event loop management in the server launch process by replacing the deprecated get_event_loop() with new_event_loop(). This change addresses Python 3.10+ deprecation warnings when no event loop is currently running.

  • Replaced get_event_loop() with new_event_loop() and set_event_loop()
  • Added proper resource cleanup with try/finally block to ensure the created loop is closed
  • Updated imports to reflect the new asyncio functions being used

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

kjy5 and others added 2 commits November 15, 2025 18:20
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Nov 16, 2025

@kjy5 I've opened a new pull request, #493, to work on those changes. Once the pull request is ready, I'll request review from you.

kjy5 and others added 2 commits November 16, 2025 02:21
…oop (#493)

* Initial plan

* Update tests to mock new_event_loop instead of get_event_loop

Co-authored-by: kjy5 <82800265+kjy5@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Kenneth Yang <82800265+kjy5@users.noreply.github.com>
@kjy5 kjy5 merged commit 963cf94 into main Nov 16, 2025
6 checks passed
@kjy5 kjy5 deleted the fix-launch-loop branch November 16, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants